package edu.sctu.zhoumengxue.day201506.day20150607.threadPractice;

/**
 * Created by user12 on 2015/6/7.
 */
public class Main {

    public static void main(String[] args) {

        ThreadUtil threadUtil = new ThreadUtil(100);
        threadUtil.startThread();

        ThreadRun threadRun = new ThreadRun();
        threadRun.run();


        new NewThread();
        try {
            for (int i = 5; i > 0; i--) {
                System.out.println("Main Thread:" + i);
                Thread.sleep(1000);
            }
        } catch (InterruptedException e) {
            System.out.println("Main thread interrupted.");
        }
        System.out.println("Main thread  exiting.");



    }
}
